package com.lp.biz.identity.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @program: backend
 * @description: 身份
 * @author Ke.Song
 * @since 2024-05-14 20:43:28
 */
@Data
@TableName("biz_identity")
public class BizIdentity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 名字
     */
    @TableField("`name`")
    private String name;

    /**
     * 前置id
     */
    private Integer preId;

    /**
     * 前置id列表
     */
    private String preIds;

    @TableField("`code`")
    private String code;

    /**
     * 分类
     */
    private String category;

    /**
     * 类型code
     */
    private String typeCode;

    /**
     * 佣金比例
     */
    private BigDecimal rate;

    /**
     * 是否可升级
     */
    private Integer isUpgrade;


}
